
import JSEncrypt from '../utils/jsencrypt.js'
const pk="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCAAfFtmTRX6EXbI5NXWxkXy37FXJt3ivy85eMd6zO2LtAMCgfgY5BB8xXex3CF0SJP42QKGmTx+1VYBOLTqxE/e/d5cjtAXPqIrvJAWHvadQHjAjlUdlRcku5ZxWtHyFN/8bFKqsnxDPO9Qub7eShVhY77mIssY7bo3/DLkfU8vwIDAQAB";
const encrypt = (string) => {
  const encryptor = new JSEncrypt();
  encryptor.setPublicKey(pk);
  const encryptResult = encryptor.encrypt(string);
  return encryptResult;
}

export {
  encrypt,
}